package com.hnkywl.sts.entity.cggl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Sjzdz;
import com.hnkywl.sts.entity.organ.Qyjg;
import com.hnkywl.sts.entity.sys.Gg;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: ZHUCHG
 * Date: 13-4-15
 * Time: 下午4:43
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_DHD")
@Where(clause = "deleted!='1'")
public class Dhd extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqDhd", allocationSize = 1, sequenceName = "SEQ_BIZ_DHD")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqDhd")
    private Long id;
    //到货日期
    private Date dhrq;
    //车船号
    private String chh;
    //材料送货单号
    private String clshdh;
    //验收日期
    private Date ysrq;
    //运单号
    private String ydh;
    //送货人
    private String sender;
    //提货地址
    private String thdd;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "CGD_ID")
    private Cgd cgd;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "CGDMX_ID")
    private Cgdmx cgdmx;

    //供应商
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "GYS_ID")
    private Qyjg gys;

    // 物资
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "WZ_ID")
    private Gg wz;

    //物资品牌即为产地
    private String cd;

    //应收数量
    private Float yssl;
    //实收数量
    private Float sssl;
    //供应商名称是否相符
    private String isgysname;
    //物资名称是否相符
    private String iswzname;
    //物资规格型号是否相符
    private String iswzxh;
    //物资品牌是否相符
    private String iswzpp;
    //生产厂家
    private String sccj;
    //生产日期
    private Date scrq;
    //产品资格
    private String cpzg;
    //其他证件
    private String qtzj;
    //包装状况
    private String bzzk;
    //实物外观
    private String swwg;
    //核对检验报告
    private String hdjybg;
    //实测尺寸
    private String sccc;
    //件数
    private Float js;
    //称重
    private Float cz;
     //检尺
    private String jc;
    //问题处理结果
    private String wtcljg;
    //验收结论
    private String ysjl;
    //验收员
    private String ysy;
     //保管员
    private String bgy;
    /**
     * 0，编辑到货单1,保管员已保存；2保管员已提交；3验收员已保存；4验收员已验收
     */
    private String zt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getZt() {
        return zt;
    }

    public void setZt(String zt) {
        this.zt = zt;
    }

    public String getCd() {
        return cd;
    }

    public void setCd(String cd) {
        this.cd = cd;
    }

    public Date getDhrq() {
        return dhrq;
    }

    public void setDhrq(Date dhrq) {
        this.dhrq = dhrq;
    }

    public String getChh() {
        return chh;
    }

    public void setChh(String chh) {
        this.chh = chh;
    }

    public String getClshdh() {
        return clshdh;
    }

    public void setClshdh(String clshdh) {
        this.clshdh = clshdh;
    }

    public Date getYsrq() {
        return ysrq;
    }

    public void setYsrq(Date ysrq) {
        this.ysrq = ysrq;
    }

    public String getYdh() {
        return ydh;
    }

    public void setYdh(String ydh) {
        this.ydh = ydh;
    }


    public String getThdd() {
        return thdd;
    }

    public void setThdd(String thdd) {
        this.thdd = thdd;
    }

    public Qyjg getGys() {
        return gys;
    }

    public void setGys(Qyjg gys) {
        this.gys = gys;
    }

    public Gg getWz() {
        return wz;
    }

    public void setWz(Gg wz) {
        this.wz = wz;
    }

    public Float getYssl() {
        return yssl;
    }

    public void setYssl(Float yssl) {
        this.yssl = yssl;
    }

    public Float getSssl() {
        return sssl;
    }

    public void setSssl(Float sssl) {
        this.sssl = sssl;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getIsgysname() {
        return isgysname;
    }

    public void setIsgysname(String isgysname) {
        this.isgysname = isgysname;
    }

    public String getIswzname() {
        return iswzname;
    }

    public void setIswzname(String iswzname) {
        this.iswzname = iswzname;
    }

    public String getIswzxh() {
        return iswzxh;
    }

    public void setIswzxh(String iswzxh) {
        this.iswzxh = iswzxh;
    }

    public String getIswzpp() {
        return iswzpp;
    }

    public void setIswzpp(String iswzpp) {
        this.iswzpp = iswzpp;
    }

    public String getSccj() {
        return sccj;
    }

    public void setSccj(String sccj) {
        this.sccj = sccj;
    }

    public Date getScrq() {
        return scrq;
    }

    public void setScrq(Date scrq) {
        this.scrq = scrq;
    }

    public String getCpzg() {
        return cpzg;
    }

    public void setCpzg(String cpzg) {
        this.cpzg = cpzg;
    }

    public String getQtzj() {
        return qtzj;
    }

    public void setQtzj(String qtzj) {
        this.qtzj = qtzj;
    }

    public String getBzzk() {
        return bzzk;
    }

    public void setBzzk(String bzzk) {
        this.bzzk = bzzk;
    }

    public String getSwwg() {
        return swwg;
    }

    public void setSwwg(String swwg) {
        this.swwg = swwg;
    }

    public String getHdjybg() {
        return hdjybg;
    }

    public void setHdjybg(String hdjybg) {
        this.hdjybg = hdjybg;
    }

    public String getSccc() {
        return sccc;
    }

    public void setSccc(String sccc) {
        this.sccc = sccc;
    }

    public Cgd getCgd() {
        return cgd;
    }

    public void setCgd(Cgd cgd) {
        this.cgd = cgd;
    }

    public Cgdmx getCgdmx() {
        return cgdmx;
    }

    public void setCgdmx(Cgdmx cgdmx) {
        this.cgdmx = cgdmx;
    }

    public Float getJs() {
        return js;
    }

    public void setJs(Float js) {
        this.js = js;
    }

    public Float getCz() {
        return cz;
    }

    public void setCz(Float cz) {
        this.cz = cz;
    }

    public String getJc() {
        return jc;
    }

    public void setJc(String jc) {
        this.jc = jc;
    }

    public String getWtcljg() {
        return wtcljg;
    }

    public void setWtcljg(String wtcljg) {
        this.wtcljg = wtcljg;
    }

    public String getYsjl() {
        return ysjl;
    }

    public void setYsjl(String ysjl) {
        this.ysjl = ysjl;
    }

    public String getYsy() {
        return ysy;
    }

    public void setYsy(String ysy) {
        this.ysy = ysy;
    }

    public String getBgy() {
        return bgy;
    }

    public void setBgy(String bgy) {
        this.bgy = bgy;
    }
}
